package app1.feign

import org.springframework.cloud.openfeign.FeignClient
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestHeader
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod

@FeignClient(name = "SERVICE-SET-1", fallback = ServiceSet1Hystrix.class)
interface ServiceSet1 {
    @RequestMapping(method = RequestMethod.GET, value = "/sampleApi1?dependency={dependency}")
    Map sampleApi1(@RequestHeader("Authorization") String bearerToken, @PathVariable("dependency") String dependency)
}